package com.xrui.hbase.exception;


/**
 * Thrown when an attempt to access a table layout fails because it does not exist.
 */
public final class TableLayoutNotFoundException extends RuntimeException {
  /** Name of the layout missing table. */
  private final String mTableName;

  /**
   * Creates a new <code>TableLayoutNotFoundException</code> for the specified table.
   *
   * @param tableName Name of the table that layout wasn't found.
   */
  public TableLayoutNotFoundException(String tableName) {
    super("Layout of table not found: " + tableName);
    mTableName = tableName;
  }

  /**
   * Returns the name of the layout missing table.
   * @return the name of the layout missing table.
   */
  public String getTableName() {
    return mTableName;
  }
}
